using System;
using System.Data;
using System.Collections;

namespace APP.QUANLY.Entity.ConditionForm
{
    /// <summary>
    /// Summary description for KHACHHANG.
   /// </summary>
    public class KHACHHANGConditionForm
    {

        #region Fields
      private Guid _MAKHACHHANG;
      private string _MABARCODE;
      private byte[] _HINHANH;
      private string _CODEKHACHHANG;
      private string _CMND;
      private Int32 _MAKHUVUC;
      private Int32 _MANHOM;
      private Int32 _MALOAIKHACHHANG;
      private string _TENKHACHHANG;
      private string _MASOTHUE;
      private string _NGUOIDAIDIEN;
      private DateTime _NGAYSINH;
      private string _GIOITINH;
      private string _CHUCVU;
      private string _DIACHI;
      private string _DIENTHOAI;
      private string _FAX;
      private string _DIDONG;
      private string _EMAIL;
      private Int32 _CHECKTPYE;
      private string _GHICHU;
      private string _DIACHICONGTY;
      private string _TENTATKHACHHANG;
      private string _CONGTY;
      private string _DIACHIGIAOHOADON;
      private string _DIACHIGIAOHANG;
      private string _DIACHIGIAOHANG2;
      private decimal _TONGCONGNO;
      private decimal _GIOIHANCONGNO;
      private Int32 _GIOIHANSONGAYNO;
      private DateTime _NGAYNOGANNHAT;
      private double _CHIETKHAU;
      private Int32 _CHECKKHUYENMAI;
      private bool _ISUSE;
      private bool _ISDELETE;
      private DateTime _NGAYTAO;
      private string _NGUOITAO;
      private DateTime _NGAYCAPNHAT;
      private string _NGUOICAPNHAT;
      private HOADONXUATKHOList _listHOADONXUATKHO;
      private QUANLYTHETHEOKHACHHANGList _listQUANLYTHETHEOKHACHHANG;
        #endregion

        #region Properties
	public bool IsSetMAKHACHHANG;  
    public bool IsMAKHACHHANGNullable
      { get { return false;  } }
      public Guid MAKHACHHANG
      {
         get { return _MAKHACHHANG; }
         set { 
		_MAKHACHHANG = value; 
		IsSetMAKHACHHANG = true;
		}
      }
	public bool IsSetMABARCODE;
	public bool IsMABARCODENullable
      { get { return true;  } }
      public string MABARCODE
      {
         get { return _MABARCODE;  }
         set { 
		_MABARCODE = value; 
		IsSetMABARCODE = true;
		}
      }
	public bool IsSetHINHANH;
	public bool IsHINHANHNullable
      { get { return true;  } }
      public byte[] HINHANH
      {
         get { return _HINHANH;  }
         set { 
		_HINHANH = value; 
		IsSetHINHANH = true;
		}
      }
	public bool IsSetCODEKHACHHANG;
	public bool IsCODEKHACHHANGNullable
      { get { return true;  } }
      public string CODEKHACHHANG
      {
         get { return _CODEKHACHHANG;  }
         set { 
		_CODEKHACHHANG = value; 
		IsSetCODEKHACHHANG = true;
		}
      }
	public bool IsSetCMND;
	public bool IsCMNDNullable
      { get { return true;  } }
      public string CMND
      {
         get { return _CMND;  }
         set { 
		_CMND = value; 
		IsSetCMND = true;
		}
      }
	public bool IsSetMAKHUVUC;
	public bool IsMAKHUVUCNullable
      { get { return true;  } }
      public Int32 MAKHUVUC
      {
         get { return _MAKHUVUC;  }
         set { 
		_MAKHUVUC = value; 
		IsSetMAKHUVUC = true;
		}
      }
	public bool IsSetMANHOM;
	public bool IsMANHOMNullable
      { get { return true;  } }
      public Int32 MANHOM
      {
         get { return _MANHOM;  }
         set { 
		_MANHOM = value; 
		IsSetMANHOM = true;
		}
      }
	public bool IsSetMALOAIKHACHHANG;
	public bool IsMALOAIKHACHHANGNullable
      { get { return true;  } }
      public Int32 MALOAIKHACHHANG
      {
         get { return _MALOAIKHACHHANG;  }
         set { 
		_MALOAIKHACHHANG = value; 
		IsSetMALOAIKHACHHANG = true;
		}
      }
	public bool IsSetTENKHACHHANG;
	public bool IsTENKHACHHANGNullable
      { get { return true;  } }
      public string TENKHACHHANG
      {
         get { return _TENKHACHHANG;  }
         set { 
		_TENKHACHHANG = value; 
		IsSetTENKHACHHANG = true;
		}
      }
	public bool IsSetMASOTHUE;
	public bool IsMASOTHUENullable
      { get { return true;  } }
      public string MASOTHUE
      {
         get { return _MASOTHUE;  }
         set { 
		_MASOTHUE = value; 
		IsSetMASOTHUE = true;
		}
      }
	public bool IsSetNGUOIDAIDIEN;
	public bool IsNGUOIDAIDIENNullable
      { get { return true;  } }
      public string NGUOIDAIDIEN
      {
         get { return _NGUOIDAIDIEN;  }
         set { 
		_NGUOIDAIDIEN = value; 
		IsSetNGUOIDAIDIEN = true;
		}
      }
	public bool IsSetNGAYSINH;
	public bool IsNGAYSINHNullable
      { get { return true;  } }
      public DateTime NGAYSINH
      {
         get { return _NGAYSINH;  }
         set { 
		_NGAYSINH = value; 
		IsSetNGAYSINH = true;
		}
      }
	public bool IsSetGIOITINH;
	public bool IsGIOITINHNullable
      { get { return true;  } }
      public string GIOITINH
      {
         get { return _GIOITINH;  }
         set { 
		_GIOITINH = value; 
		IsSetGIOITINH = true;
		}
      }
	public bool IsSetCHUCVU;
	public bool IsCHUCVUNullable
      { get { return true;  } }
      public string CHUCVU
      {
         get { return _CHUCVU;  }
         set { 
		_CHUCVU = value; 
		IsSetCHUCVU = true;
		}
      }
	public bool IsSetDIACHI;
	public bool IsDIACHINullable
      { get { return true;  } }
      public string DIACHI
      {
         get { return _DIACHI;  }
         set { 
		_DIACHI = value; 
		IsSetDIACHI = true;
		}
      }
	public bool IsSetDIENTHOAI;
	public bool IsDIENTHOAINullable
      { get { return true;  } }
      public string DIENTHOAI
      {
         get { return _DIENTHOAI;  }
         set { 
		_DIENTHOAI = value; 
		IsSetDIENTHOAI = true;
		}
      }
	public bool IsSetFAX;
	public bool IsFAXNullable
      { get { return true;  } }
      public string FAX
      {
         get { return _FAX;  }
         set { 
		_FAX = value; 
		IsSetFAX = true;
		}
      }
	public bool IsSetDIDONG;
	public bool IsDIDONGNullable
      { get { return true;  } }
      public string DIDONG
      {
         get { return _DIDONG;  }
         set { 
		_DIDONG = value; 
		IsSetDIDONG = true;
		}
      }
	public bool IsSetEMAIL;
	public bool IsEMAILNullable
      { get { return true;  } }
      public string EMAIL
      {
         get { return _EMAIL;  }
         set { 
		_EMAIL = value; 
		IsSetEMAIL = true;
		}
      }
	public bool IsSetCHECKTPYE;
	public bool IsCHECKTPYENullable
      { get { return true;  } }
      public Int32 CHECKTPYE
      {
         get { return _CHECKTPYE;  }
         set { 
		_CHECKTPYE = value; 
		IsSetCHECKTPYE = true;
		}
      }
	public bool IsSetGHICHU;
	public bool IsGHICHUNullable
      { get { return true;  } }
      public string GHICHU
      {
         get { return _GHICHU;  }
         set { 
		_GHICHU = value; 
		IsSetGHICHU = true;
		}
      }
	public bool IsSetDIACHICONGTY;
	public bool IsDIACHICONGTYNullable
      { get { return true;  } }
      public string DIACHICONGTY
      {
         get { return _DIACHICONGTY;  }
         set { 
		_DIACHICONGTY = value; 
		IsSetDIACHICONGTY = true;
		}
      }
	public bool IsSetTENTATKHACHHANG;
	public bool IsTENTATKHACHHANGNullable
      { get { return true;  } }
      public string TENTATKHACHHANG
      {
         get { return _TENTATKHACHHANG;  }
         set { 
		_TENTATKHACHHANG = value; 
		IsSetTENTATKHACHHANG = true;
		}
      }
	public bool IsSetCONGTY;
	public bool IsCONGTYNullable
      { get { return true;  } }
      public string CONGTY
      {
         get { return _CONGTY;  }
         set { 
		_CONGTY = value; 
		IsSetCONGTY = true;
		}
      }
	public bool IsSetDIACHIGIAOHOADON;
	public bool IsDIACHIGIAOHOADONNullable
      { get { return true;  } }
      public string DIACHIGIAOHOADON
      {
         get { return _DIACHIGIAOHOADON;  }
         set { 
		_DIACHIGIAOHOADON = value; 
		IsSetDIACHIGIAOHOADON = true;
		}
      }
	public bool IsSetDIACHIGIAOHANG;
	public bool IsDIACHIGIAOHANGNullable
      { get { return true;  } }
      public string DIACHIGIAOHANG
      {
         get { return _DIACHIGIAOHANG;  }
         set { 
		_DIACHIGIAOHANG = value; 
		IsSetDIACHIGIAOHANG = true;
		}
      }
	public bool IsSetDIACHIGIAOHANG2;
	public bool IsDIACHIGIAOHANG2Nullable
      { get { return true;  } }
      public string DIACHIGIAOHANG2
      {
         get { return _DIACHIGIAOHANG2;  }
         set { 
		_DIACHIGIAOHANG2 = value; 
		IsSetDIACHIGIAOHANG2 = true;
		}
      }
	public bool IsSetTONGCONGNO;
	public bool IsTONGCONGNONullable
      { get { return true;  } }
      public decimal TONGCONGNO
      {
         get { return _TONGCONGNO;  }
         set { 
		_TONGCONGNO = value; 
		IsSetTONGCONGNO = true;
		}
      }
	public bool IsSetGIOIHANCONGNO;
	public bool IsGIOIHANCONGNONullable
      { get { return true;  } }
      public decimal GIOIHANCONGNO
      {
         get { return _GIOIHANCONGNO;  }
         set { 
		_GIOIHANCONGNO = value; 
		IsSetGIOIHANCONGNO = true;
		}
      }
	public bool IsSetGIOIHANSONGAYNO;
	public bool IsGIOIHANSONGAYNONullable
      { get { return true;  } }
      public Int32 GIOIHANSONGAYNO
      {
         get { return _GIOIHANSONGAYNO;  }
         set { 
		_GIOIHANSONGAYNO = value; 
		IsSetGIOIHANSONGAYNO = true;
		}
      }
	public bool IsSetNGAYNOGANNHAT;
	public bool IsNGAYNOGANNHATNullable
      { get { return true;  } }
      public DateTime NGAYNOGANNHAT
      {
         get { return _NGAYNOGANNHAT;  }
         set { 
		_NGAYNOGANNHAT = value; 
		IsSetNGAYNOGANNHAT = true;
		}
      }
	public bool IsSetCHIETKHAU;
	public bool IsCHIETKHAUNullable
      { get { return true;  } }
      public double CHIETKHAU
      {
         get { return _CHIETKHAU;  }
         set { 
		_CHIETKHAU = value; 
		IsSetCHIETKHAU = true;
		}
      }
	public bool IsSetCHECKKHUYENMAI;
	public bool IsCHECKKHUYENMAINullable
      { get { return true;  } }
      public Int32 CHECKKHUYENMAI
      {
         get { return _CHECKKHUYENMAI;  }
         set { 
		_CHECKKHUYENMAI = value; 
		IsSetCHECKKHUYENMAI = true;
		}
      }
	public bool IsSetISUSE;
	public bool IsISUSENullable
      { get { return true;  } }
      public bool ISUSE
      {
         get { return _ISUSE;  }
         set { 
		_ISUSE = value; 
		IsSetISUSE = true;
		}
      }
	public bool IsSetISDELETE;
	public bool IsISDELETENullable
      { get { return true;  } }
      public bool ISDELETE
      {
         get { return _ISDELETE;  }
         set { 
		_ISDELETE = value; 
		IsSetISDELETE = true;
		}
      }
	public bool IsSetNGAYTAO;
	public bool IsNGAYTAONullable
      { get { return true;  } }
      public DateTime NGAYTAO
      {
         get { return _NGAYTAO;  }
         set { 
		_NGAYTAO = value; 
		IsSetNGAYTAO = true;
		}
      }
	public bool IsSetNGUOITAO;
	public bool IsNGUOITAONullable
      { get { return true;  } }
      public string NGUOITAO
      {
         get { return _NGUOITAO;  }
         set { 
		_NGUOITAO = value; 
		IsSetNGUOITAO = true;
		}
      }
	public bool IsSetNGAYCAPNHAT;
	public bool IsNGAYCAPNHATNullable
      { get { return true;  } }
      public DateTime NGAYCAPNHAT
      {
         get { return _NGAYCAPNHAT;  }
         set { 
		_NGAYCAPNHAT = value; 
		IsSetNGAYCAPNHAT = true;
		}
      }
	public bool IsSetNGUOICAPNHAT;
	public bool IsNGUOICAPNHATNullable
      { get { return true;  } }
      public string NGUOICAPNHAT
      {
         get { return _NGUOICAPNHAT;  }
         set { 
		_NGUOICAPNHAT = value; 
		IsSetNGUOICAPNHAT = true;
		}
      }
      public HOADONXUATKHOList HOADONXUATKHOList
      { get { return _listHOADONXUATKHO; } }
      public QUANLYTHETHEOKHACHHANGList QUANLYTHETHEOKHACHHANGList
      { get { return _listQUANLYTHETHEOKHACHHANG; } }
        #endregion

        #region Constructors
        public KHACHHANGConditionForm()
        {
         Reset();
        }
        #endregion

        public void Reset()
        {
            	 _MAKHACHHANG = EmptyValues.v_Guid;
	IsSetMAKHACHHANG = false;
	 _MABARCODE = EmptyValues.v_string;
	IsSetMABARCODE = false;
	 _HINHANH = EmptyValues.v_bytes;
	IsSetHINHANH = false;
	 _CODEKHACHHANG = EmptyValues.v_string;
	IsSetCODEKHACHHANG = false;
	 _CMND = EmptyValues.v_string;
	IsSetCMND = false;
	 _MAKHUVUC = EmptyValues.v_Int32;
	IsSetMAKHUVUC = false;
	 _MANHOM = EmptyValues.v_Int32;
	IsSetMANHOM = false;
	 _MALOAIKHACHHANG = EmptyValues.v_Int32;
	IsSetMALOAIKHACHHANG = false;
	 _TENKHACHHANG = EmptyValues.v_string;
	IsSetTENKHACHHANG = false;
	 _MASOTHUE = EmptyValues.v_string;
	IsSetMASOTHUE = false;
	 _NGUOIDAIDIEN = EmptyValues.v_string;
	IsSetNGUOIDAIDIEN = false;
	 _NGAYSINH = EmptyValues.v_DateTime;
	IsSetNGAYSINH = false;
	 _GIOITINH = EmptyValues.v_string;
	IsSetGIOITINH = false;
	 _CHUCVU = EmptyValues.v_string;
	IsSetCHUCVU = false;
	 _DIACHI = EmptyValues.v_string;
	IsSetDIACHI = false;
	 _DIENTHOAI = EmptyValues.v_string;
	IsSetDIENTHOAI = false;
	 _FAX = EmptyValues.v_string;
	IsSetFAX = false;
	 _DIDONG = EmptyValues.v_string;
	IsSetDIDONG = false;
	 _EMAIL = EmptyValues.v_string;
	IsSetEMAIL = false;
	 _CHECKTPYE = EmptyValues.v_Int32;
	IsSetCHECKTPYE = false;
	 _GHICHU = EmptyValues.v_string;
	IsSetGHICHU = false;
	 _DIACHICONGTY = EmptyValues.v_string;
	IsSetDIACHICONGTY = false;
	 _TENTATKHACHHANG = EmptyValues.v_string;
	IsSetTENTATKHACHHANG = false;
	 _CONGTY = EmptyValues.v_string;
	IsSetCONGTY = false;
	 _DIACHIGIAOHOADON = EmptyValues.v_string;
	IsSetDIACHIGIAOHOADON = false;
	 _DIACHIGIAOHANG = EmptyValues.v_string;
	IsSetDIACHIGIAOHANG = false;
	 _DIACHIGIAOHANG2 = EmptyValues.v_string;
	IsSetDIACHIGIAOHANG2 = false;
	 _TONGCONGNO = EmptyValues.v_decimal;
	IsSetTONGCONGNO = false;
	 _GIOIHANCONGNO = EmptyValues.v_decimal;
	IsSetGIOIHANCONGNO = false;
	 _GIOIHANSONGAYNO = EmptyValues.v_Int32;
	IsSetGIOIHANSONGAYNO = false;
	 _NGAYNOGANNHAT = EmptyValues.v_DateTime;
	IsSetNGAYNOGANNHAT = false;
	 _CHIETKHAU = EmptyValues.v_double;
	IsSetCHIETKHAU = false;
	 _CHECKKHUYENMAI = EmptyValues.v_Int32;
	IsSetCHECKKHUYENMAI = false;
	 _ISUSE = EmptyValues.v_bool;
	IsSetISUSE = false;
	 _ISDELETE = EmptyValues.v_bool;
	IsSetISDELETE = false;
	 _NGAYTAO = EmptyValues.v_DateTime;
	IsSetNGAYTAO = false;
	 _NGUOITAO = EmptyValues.v_string;
	IsSetNGUOITAO = false;
	 _NGAYCAPNHAT = EmptyValues.v_DateTime;
	IsSetNGAYCAPNHAT = false;
	 _NGUOICAPNHAT = EmptyValues.v_string;
	IsSetNGUOICAPNHAT = false;
         _listHOADONXUATKHO = new HOADONXUATKHOList();
         _listQUANLYTHETHEOKHACHHANG = new QUANLYTHETHEOKHACHHANGList();
        }
    }
}